size = 5

print("1. 直角在左上角：")
i = size
while i > 0:
    print('*' * i)
    i -= 1  # 递减计数器

print("\n2. 直角在右上角：")
i = size
while i > 0:
    print(' ' * (size - i) + '*' * i)
    i -= 1

print("\n3. 直角在左下角：")
i = 1
while i <= size:
    print('*' * i)
    i += 1  # 递增计数器

print("\n4. 直角在右下角：")
i = 1
while i <= size:
    print(' ' * (size - i) + '*' * i)
    i += 1

